import request from '@/utils/request'

// // 查询门诊类型
// export function listill() {
//   return request({
//     url: '/vis/reg/list',
//     method: 'get',
//   })
// }

export function listdept() {
  return request({
    url: '/his/vis/listDepts',
    method: 'get',
  })
}

// 查询岗位列表
export function all() {
  return request({
    url: '/his/reg/all',
    method: 'get',
  })
}

// 查询患者详细
export function getreg(card) {
  return request({
    url: '/vis/reg/' + card,
    method: 'get'
  })
}

// 新增
export function addreg(data) {
  return request({
    url: '/vis/reg',
    method: 'post',
    data: data
  })
}

// 根据流水号获得患者信息
export function updatereg(data) {
  return request({
    url: '/vis/reg/add',
    method: 'get',
    params: data
  })
}

//用户信息回显
export function findPatient(register_id) {
  return request({
    url: '/vis/register/findPatient',
    method: 'get',
    params: {register_id}
  })
}


export function showName(data) {
  return request({
    url: '/system/register/show',
    method: 'post',
    data: data
  })
}

export function deptId(data) {
  return request({
    url: '/his/reg/dept',
    method: 'post',
    data: data
  })
}

export function addparams(data) {
  return request({
    url: '/vis/show/regList',
    method: 'post',
    data: data
  })
}

